package com.qzy.singleton;

/**
 * @描述
 * @创建人 joy_qiu
 * @创建时间 2019-12-23-11:12
 * @修改人和其它信息
 */
public class Singleton1 {
    private int age;
    private String name;
    private Singleton1(){}
    private static Singleton1 singleton1 = new Singleton1();
    public static Singleton1 init(int age,String name){
        singleton1.name = name;
        singleton1.age = age;
        return singleton1;
    }
    public  String toString(){
        System.out.println();
        return "name:"+name+"\t age:"+age;
    }


}
